package org.example.dao.dao.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.dao.entity.order.OOrder;
import org.example.dao.dto.order.OrderListDto;

import java.util.List;


@Mapper
public interface OOrderDao extends BaseMapper<OOrder> {


    List<OrderListDto> selectOrderDtoByStatus(@Param("userId") Long userId,
                                              @Param("status") String status,
                                              @Param("start")Integer start,
                                              @Param("limit")Integer limit);

    List<OrderListDto> selectOrderDtoByTradeNo(@Param("tradeNo")String tradeNo);

    List<OrderListDto> selectOrderDtoInTradeNo(@Param("tradeNo")List tradeNo);


}
